package org.dromara.book.domain.bo;

import org.dromara.book.domain.SzlyBaseBatch;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 批次管理业务对象 szly_base_batch
 *
 * @author LionLi
 * @date 2024-03-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SzlyBaseBatch.class, reverseConvertGenerate = false)
public class SzlyBaseBatchBo extends BaseEntity {

    /**
     * 参数主键
     */
    @NotNull(message = "参数主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 批次号
     */
    @NotBlank(message = "批次号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 经费来源
     */
    @NotBlank(message = "经费来源不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fundsSource;

    /**
     * 供应商
     */
    @NotBlank(message = "供应商不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplier;

    /**
     * 折扣
     */
    @NotBlank(message = "折扣不能为空", groups = { AddGroup.class, EditGroup.class })
    private String discount;

    /**
     * 单据编号
     */
    @NotBlank(message = "单据编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String receiptNumber;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
